import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'

// 引入树形表格插件
import treeTable from 'vue-table-with-tree-grid'

// 外部样式表
import './assets/css/reset.css'

// 字体图标
import './assets/fonts/iconfont.css'
import moment from 'moment'

// 时间格式化插件
Vue.filter('dateFormat',function(date){
  return moment(date).format('YYYY-MM-DD HH:mm:ss')
})

Vue.config.productionTip = false
Vue.component('tree-table',treeTable)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
